package com.example.fms.dto.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddMinOrderRuleReqDto {

    //id
    private Long id;

    //规则名称
    @NotEmpty(message = "规则名称不能为空")
    private String ruleName;

    //仓库
    @NotEmpty(message = "仓库不能为空")
    private String warehouse;

    //规则类型
    @NotEmpty(message = "规则类型不能为空")
    private String type;

    //省
    @NotEmpty(message = "省不能为空")
    private String province;

    //市
    private String city;

    //区
    private String area;

    //最小订单
    @NotNull(message = "最小订单不能为空")
    private Integer minOrder;

    //固定费用
    @NotNull(message = "固定费用不能为空")
    private Integer fixedCost;
}
